package com.tedu.demo5_1.dao;

import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

@Repository
public class UserDaoImpl implements IUserDAO{
    public boolean findUser(){
        double r = Math.random();
        if(r>0.5){
            System.out.println("UserDao返回查询成功");
            return true;
        }else{
            System.out.println("UserDao返回查询失败");
            return false;
        }
    }
}
